package Arbori;

public class ArboreFunctional {
	public Nod radacina;
	
	public ArboreFunctional(Nod r){
		this.radacina = r;
	}
	double calculezValoare(double x){
		radacina.setX(x);
		return radacina.calcul();
	}
	public String toString(){
		return radacina.toString();
	}
	public String derivata(){
		return radacina.derivare();
	}
	double calculezDerivata(double x){
		radacina.setX(x);
		return radacina.calculDerivata();
	}
}
